using System;
using SMS.SMPPClient.PDU;
using System.Collections;

namespace SMS.SMPPClient.PDU.Outgoing
{
    /// <summary>
    /// Defines the SMPP enquire_link PDU.  This is basically just the header.
    /// </summary>
    public class SMPPEnquireLink : SMPPRequest
    {
        /// <summary>
        /// Creates an enquire_link PDU.
        /// </summary>
        public SMPPEnquireLink()
        {
            _CommandStatus = 0;
            _CommandID = CommandIDType.enquire_link;
        }

        ///<summary>
        /// Gets the hex encoding (big-endian) of this PDU.
        ///</summary>
        ///<return>The hex-encoded version of the PDU</return>
        public override System.Byte[] GetMSBHexEncoding()
        {
            ArrayList pdu = GetPDUHeader();

            return EncodePDUForTransmission(pdu);
        }
    }
}